package com.dbz.service.Impl;

import com.dbz.dao.ModulesDao;
import com.dbz.entity.Modules;
import com.dbz.service.ModulesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Set;

@Service
public class ModulesServiceImpl implements ModulesService {
    @Resource
    private ModulesDao modulesDao;

    @Override
    public Set<Modules> selectModelByUserName(String userName) {
        return modulesDao.selectModelByUserName(userName);
    }

    @Override
    public List<Modules> getAll2() {
        return modulesDao.selectList(null);
    }
}
